package models

import "time"

type Comment struct {
	PostID     uint64    `gorm:"post_id" json:"post_id"`
	CommentID  uint64    `gorm:"comment_id" json:"comment_id"`
	AuthorID   uint64    `gorm:"author_id" json:"author_id"`
	Content    string    `gorm:"content" json:"content"`
	CreateTime time.Time `gorm:"create_time" json:"create_time"`
}

func (*Comment) TableName() string {
	return "comment"
}